package com.obas.access.business.service.impl;

import com.ease.common.vo.MapParameter;
import com.ease.platform.access.service.impl.AbstractParameterizedBeanIbatisAccessServiceImpl;
import com.obas.access.business.service.CustomerNetworkServingAccessService;
import com.obas.model.business.CustomerNetworkServing;

public class CustomerNetworkServingAccessServiceImpl extends AbstractParameterizedBeanIbatisAccessServiceImpl<CustomerNetworkServing> implements CustomerNetworkServingAccessService {

	public CustomerNetworkServing findByCustomerIdNetworkServingType(long customerId, short networkServingType) {
		MapParameter parameter = new MapParameter();
		parameter.put(CustomerNetworkServing.ATTRIBUTE_customerId, customerId);
		parameter.put(CustomerNetworkServing.ATTRIBUTE_networkServingType, networkServingType);
		return this.findOne(parameter);
	}

	public CustomerNetworkServing findByCustomerIdNetworkServingId(long customerId, long networkServingId) {
		MapParameter parameter = new MapParameter();
		parameter.put(CustomerNetworkServing.ATTRIBUTE_customerId, customerId);
		parameter.put(CustomerNetworkServing.ATTRIBUTE_networkServingId, networkServingId);
		return this.findOne(parameter);
	}

}
